/**
 * Created by lihao on 2017/6/28.
 */
const _ = require('lodash');
exports = module.exports = function (req, res) {
	let omitFueld = ['password', 'isAdmin', '__v'];
	let userData = _.omit(req.user, omitFueld);
	return res.json({
		code: 1, message: '请求成功', data: userData
	});
};
